﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data
{
    /// <summary>
    /// Relation name attribute.
    /// </summary>
    [Serializable]
    public class RelationNameAttribute : Attribute
    {        
        private string name = string.Empty;
        /// <summary>
        /// name.
        /// </summary>
        public string Name
        {
            get
            {
                return this.name;
            }
            set
            {
                this.name = value;
            }
        }

        private string fileName;
        /// <summary>
        /// file name.
        /// </summary>
        public string FileName
        {
            get
            {
                return this.fileName;
            }
            set
            {
                this.fileName = value;
            }
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="name">name.</param>
        public RelationNameAttribute(string name)
        {
            this.name = name;
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="fileName">file name.</param>
        /// <param name="name">name.</param>
        public RelationNameAttribute(string fileName, string name)
        {
            this.fileName = fileName;
            this.name = name;
        }
    }
}
